SpiralShape InnerRotations
Gets or Sets the inner rotations of the spiral shape. The inner rotations define the number of turns the laser should scan after reaching the inner radius.
public float InnerRotations {get;Set} |
Return value
float | The number of rotations to scan |
Example
Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);
if (scanDocument != null)
{
VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);
vectorImage.SetMarkSpeed(1000);
vectorImage.SetJumpSpeed(2000);
vectorImage.SetJumpDelay(100);
vectorImage.SetMarkDelay(100);
//Set Laser Delays
vectorImage.SetLaserOnDelay(10);
vectorImage.SetLaserOffDelay(10);
SpiralShape spiral = new SpiralShape();
spiral.CenterPoint = new Point3D(0, 0, 0);
spiral.InnerRadius = 0.2f;
spiral.OuterRadius = 9f;
spiral.Angle = 0.3f;
spiral.Pitch = 0.1f;
spiral.Clockwise = false;
spiral.InnerRotations = 1;
spiral.OuterRotations = 1;
spiral.Outwards = true;
spiral.ReturnToStart = true;
vectorImage.AddSpiral(spiral, 0.1f);
scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));
try
{
scanDocument.StartScanning();
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
}